package com.csun.cmny.provider.model.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.ibatis.type.Alias;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@Alias(value = "DmcPropertyManagement")
@Table(name = "cn_dmc_property_management")
public class DmcPropertyManagement {

    /**
     * 设备Id
     */
    @Id
    @Column(name = "device_id")
    private Long deviceId;





   /*出厂日期*/
    @Column(name = "production_date")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date productionDate;

    /*批次*/
    private String batch;

    /*物管编号*/
    @Column(name = "managent_no")
    private String managentNo;

    /*客户编号*/
    @Column(name = "customer_no")
    private String customerNo;


    /*出货日期*/
    @Column(name = "shipment_date")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date shipmentDate;



    /*初始化日期*/
    @Column(name = "initialize_date")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date initializeDate;



    /*物管备注*/
    @Column(name = "managent_remark")
    private String managentRemark;

    /*所购买的机构id*/
    @Column(name = "buy_groupId")
    private Long buyGroupId;

}
